<?php
	ob_start(); 
	require('config.php');
	include('classes/db.php');
	include('classes/functions.php');
?>	


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<link rel="stylesheet" type="text/css" href="images/style.css" />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>SourceBB</title>
</head>

<body>

<table cellspacing="0" cellpadding="0">

<tr height="75">
	<td valign="middle" width="263"><img src="images/sitelogo.png" alt="site logo"></td>
	<td valign="bottom" width="537">
	<div id="nav">
		<a href="index.php">Dashboard</a>
		<a href="bans.php">Bans</a>
		<?php if (isUserGuest() != 1) {	echo '<a href="steamid.php">My SteamID</a>'; } ?>
		<a href="search.php">Search</a>
		<a href="about.php">About</a>
		<a href="faq.php">FAQ</a>
	</div>
	</td>
</tr>
<tr><td valign="top" colspan="2">

<div id="main">

<?php if (isUserGuest() != 1) {	?><div id="main_gray"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><p>Welcome <a href="profile.php?id=<?php echo accountID(); ?>"><?php echo displayUsername(); ?></a>!</p></td>  <td align="right"><p style="text-align:right">Account Status: 
	
	<?php if (sidBanned() == 0) { ?><a href="faq.php#banned" class="redtext">Banned</a><?php } ?>
	<?php if (sidVerified() == 0) { ?><a href="faq.php#verified" class="greentext">Not Verified</a><?php } else { ?><a href="faq.php#verified" class="greentext">Verified</a><?php } ?>
	
</p></td></tr></table></div><?php } else { ?><div id="main_gray"><p>Welcome <b>Guest</b>! Please <a href="<?php echo $phpbblocation; ?>/ucp.php?mode=login">login</a> or <a href="<?php echo $phpbblocation; ?>/ucp.php?mode=register">register</a> to access this page.</p></div> <?php } ?>